package cate.game.role.fight;


import cate.common.table.d.GDPosition;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("阵型格子")
public class HeroGrid{

    @NoteField(value = "位置序号",detail = "1-10")
    public byte pos;

    @NoteField("英雄uid")
    public String uid;

    @NoteField(value = "来源",detail = "0：背包中的英雄 1:好友援助 2:系统提供")
    public byte origin = GDPosition.Origin.BAG;

    public HeroGrid() {}

    public HeroGrid(byte pos, String uid, byte origin) {
        this.pos = pos;
        this.uid = uid;
        this.origin = origin;
    }

    public HeroGrid copy() {
        HeroGrid grid = new HeroGrid();
        grid.pos = this.pos;
        grid.uid = this.uid;
        grid.origin = this.origin;
        return grid;
    }
}
